import React from 'react';
import {Input} from 'acud';
import {Parmas} from './index';

interface Props {
    params: Parmas;
    setParam: (params: Parmas) => void;
}

const SearchPanel: React.FC<Props> = (props) => {
    const {params, setParam} = props;

    return (
        <Input
            style={{width: 300}}
            placeholder="请输入内容"
            value={params.name}
            onChange={(val) => {
                setParam({
                    ...params,
                    name: val.target.value,
                });
            }}
        />
    );
};

export default SearchPanel;
